package com.un.ebs.inventory.domain;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.stereotype.Component;
import lombok.Data;
import com.un.ebs.core.metadata.DbField;

/**
 * (InventoryNoteItem)表实体类
 *
 * @author liubo
 * @since 2020-11-15 21:03:50
 */
@Data
@Component
@TableName("tb_inventory_note_item")
@SuppressWarnings("serial")
public class InventoryNoteItem extends Model<InventoryNoteItem> {

    @TableId(value = "id", type = IdType.UUID)
    private String id;


    @DbField(name = "note_id", length = 40, precision = 0)
    private String noteId;

    @DbField(name = "sku_id", length = 40, precision = 0)
    private String skuId;

    @DbField(name = "qty", length = 18, precision = 4)
    private Double qty;

    @DbField(name = "price", length = 18, precision = 6)
    private Double price;

    @DbField(name = "plan_check_qty", length = 18, precision = 4)
    private Double planCheckQty;

    @DbField(name = "plan_check_qty", length = 18, precision = 4)
    private Double checkNotPassQty;

    @DbField(name = "check_note_id", length = 40, precision = 0)
    private String checkNoteId;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}